inherited FPesquisaMovimentoEntradaSaidaEstoque: TFPesquisaMovimentoEntradaSaidaEstoque
  Left = 150
  Top = 170
  Caption = 'Pesquisa Movimento Entrada e Saida do Estoque'
  ClientHeight = 263
  ClientWidth = 501
  OldCreateOrder = True
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    Width = 501
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      Tag = 5
    end
    inherited BtnFechar: TBitBtn
      Left = 414
    end
  end
  inherited Panel1: TPanel
    Width = 501
    Height = 222
    object Label7: TLabel [0]
      Left = 147
      Top = 40
      Width = 61
      Height = 13
      Caption = 'Produto (F-8)'
    end
    object Label3: TLabel [1]
      Left = 5
      Top = 2
      Width = 26
      Height = 13
      Caption = 'Local'
    end
    object Label66: TLabel [2]
      Left = 5
      Top = 39
      Width = 59
      Height = 13
      Caption = 'Cod Produto'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label14: TLabel [3]
      Left = 77
      Top = 39
      Width = 57
      Height = 13
      Caption = 'Ref Produto'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    inherited DBGrid1: TDBGrid
      Top = 161
      Width = 499
      Height = 0
      Columns = <
        item
          Expanded = False
          FieldName = 'TIPMOVEST_DESCRICAO'
          Title.Caption = 'Tipo Movimento'
          Width = 84
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TIPMOVEST_ENTRADASAIDA'
          Title.Caption = 'Entrada/Saida'
          Width = 78
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MOVEST_DATALANCAMENTO'
          Title.Caption = 'Data Lan'#231'amento'
          Width = 93
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MOVEST_DOCUMENTO'
          Title.Caption = 'Documento'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'MOVEST_OS'
          Title.Caption = 'OS'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'LOC_DESCRICAO'
          Title.Caption = 'Local'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENSMOVEST_QUANTIDADE'
          Title.Caption = 'Quantidade'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENSMOVEST_VALORI'
          Title.Caption = 'Valor Informado'
          Width = 84
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENSMOVEST_VALORC'
          Title.Caption = 'Valor Calculado'
          Width = 84
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 201
      Width = 499
    end
    object DBLCBProduto: TDBLookupComboBox
      Left = 147
      Top = 54
      Width = 342
      Height = 19
      Ctl3D = False
      KeyField = 'PROD_CODIGO'
      ListField = 'PROD_DESCRICAOENT'
      ListSource = DSProduto
      ParentCtl3D = False
      TabOrder = 2
      OnExit = DBLCBProdutoExit
      OnKeyDown = DBLCBProdutoKeyDown
    end
    object DBLCBLocal: TDBLookupComboBox
      Left = 5
      Top = 16
      Width = 276
      Height = 19
      Ctl3D = False
      KeyField = 'LOC_CODIGO'
      ListField = 'LOC_DESCRICAO'
      ListSource = DSLocal
      ParentCtl3D = False
      TabOrder = 3
      OnKeyDown = DBLCBLocalKeyDown
    end
    object RGRelatorioEstoque: TRadioGroup
      Left = 288
      Top = 4
      Width = 200
      Height = 46
      Caption = '  Detalhamento Estoque  '
      Columns = 2
      Ctl3D = False
      ItemIndex = 0
      Items.Strings = (
        'Local'
        'Total')
      ParentCtl3D = False
      TabOrder = 4
      Visible = False
      OnClick = RGRelatorioEstoqueClick
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 5
      Top = 134
      Width = 118
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 5
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 161
      Width = 499
      Height = 40
      Align = alBottom
      Columns = 1
      Ctl3D = False
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 6
    end
    object EdCodProdutoMercadoria: TEdit
      Left = 5
      Top = 54
      Width = 65
      Height = 19
      Ctl3D = False
      ParentCtl3D = False
      TabOrder = 7
      OnExit = EdCodProdutoMercadoriaExit
    end
    object EdRefProdutoMercadoria: TEdit
      Left = 77
      Top = 54
      Width = 65
      Height = 19
      Ctl3D = False
      ParentCtl3D = False
      TabOrder = 8
      OnExit = EdRefProdutoMercadoriaExit
    end
    object GroupBox1: TGroupBox
      Left = 5
      Top = 76
      Width = 276
      Height = 54
      Caption = '  Per'#237'odo    '
      Ctl3D = False
      ParentCtl3D = False
      TabOrder = 9
      object Label1: TLabel
        Left = 127
        Top = 17
        Width = 6
        Height = 13
        Caption = 'a'
      end
      object Label2: TLabel
        Left = 8
        Top = 17
        Width = 14
        Height = 13
        Caption = 'De'
      end
      object DTINI: TDateEdit
        Left = 29
        Top = 17
        Width = 89
        Height = 21
        Ctl3D = False
        NumGlyphs = 2
        ParentCtl3D = False
        TabOrder = 0
      end
      object DTFIM: TDateEdit
        Left = 144
        Top = 17
        Width = 89
        Height = 21
        Ctl3D = False
        NumGlyphs = 2
        ParentCtl3D = False
        TabOrder = 1
      end
    end
  end
  inherited QPesquisa: TQuery
    AutoCalcFields = False
    AutoRefresh = True
    SQL.Strings = (
      'SELECT'
      '  ITENSMOVEST_CODIGO,'
      '  ITENSMOVEST_CUSTOMEDIOUNITANT,'
      '  ITENSMOVEST_LOCAL,'
      '  ITENSMOVEST_MOVIMENTOESTOQUE,'
      '  ITENSMOVEST_PRODUTO,'
      '  ITENSMOVEST_QUANTIDADE,'
      '  ITENSMOVEST_QTDESTANTLOCAL  AS ITENSMOVEST_QTDESTANTGERAL,'
      '  ITENSMOVEST_VALORI,'
      '  ITENSMOVEST_VALORC,'
      '  LOC_DESCRICAO,'
      '  MOVEST_CODIGO,'
      '  MOVEST_DATALANCAMENTO,'
      '  MOVEST_DOCUMENTO,'
      '  MOVEST_OS,'
      '  MOVIMENTOESTOQUE.CODIGOEMPRESA,'
      '  PROD_CODIGO,'
      '  PROD_DESCRICAOENT,'
      '  PROD_REFERENCIA,'
      '  TIPMOVEST_DESCRICAO,'
      '  TIPMOVEST_ENTRADASAIDA,'
      '  TIPMOVEST_INFVALOR,'
      '  TIPOMOVEST_ORDEM_PROC'
      'FROM PRODUTO'
      '  INNER JOIN ITENSMOVIMENTOESTOQUE ON'
      '            (PROD_CODIGO = ITENSMOVEST_PRODUTO)'
      '  INNER JOIN LOCAL ON'
      '            (ITENSMOVEST_LOCAL = LOC_CODIGO)'
      '  INNER JOIN MOVIMENTOESTOQUE ON'
      '            (ITENSMOVEST_MOVIMENTOESTOQUE = MOVEST_CODIGO)'
      '  INNER JOIN TIPOMOVIMENTOESTOQUE ON'
      '            (MOVEST_TIPOMOVIMENTO = TIPMOVEST_CODIGO)'
      'WHERE'
      '  (CODIGOEMPRESA IN ( 1) ) AND'
      '  (ITENSMOVEST_LOCAL = 1)  AND'
      '  (ITENSMOVEST_PRODUTO = 66656) AND'
      
        '  (MOVEST_DATALANCAMENTO BETWEEN '#39'08/29/2008 00:00:00'#39' AND '#39'09/1' +
        '9/2008 23:59:59'#39')'
      'ORDER BY'
      '  MOVIMENTOESTOQUE.CODIGOEMPRESA,'
      '  ITENSMOVEST_PRODUTO,'
      '  MOVEST_DATALANCAMENTO,'
      '  MOVEST_CODIGO,'
      '  ITENSMOVEST_CODIGO,'
      '  TIPMOVEST_ENTRADASAIDA,'
      '  ITENSMOVEST_MOVIMENTOESTOQUE')
    Left = 88
    Top = 305
  end
  inherited DSPesquisa: TDataSource
    Left = 280
    Top = 281
  end
  object DSProduto: TDataSource
    DataSet = DMGestao.QProdutoEnt
    Left = 264
    Top = 288
  end
  object DSLocal: TDataSource
    DataSet = DMGestao.QLocal
    Left = 312
    Top = 288
  end
end
